package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  绑定银行卡
* */
public class BindCardApi extends AbsRequest<BindCardApi.BindCardParams, NullResult> {

    public BindCardApi(BindCardParams feedbackParams, Response.Listener<NullResult> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getBindingBankUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class BindCardParams extends BaseParams {

        public BindCardParams(String bankType, String bankCard, String bankMobile, String name) {
            put("id", UniApplication.getInstance().getUserInfo().getUserId());
            put("bankType", bankType);
            put("bankCard", bankCard);
            put("bankMobile", bankMobile);
            put("name", name);
        }
    }
}
